//
//  CHStringDrawingAdditions.h
//  Chocolat
//
//  Created by Pieter Omvlee on 8/14/08.
//  Copyright 2008 Insearchofaname. All rights reserved.
//

#import <Cocoa/Cocoa.h>

enum {
  kShadowAbove = 0,
  kShadowBelow = 1
};

@interface CHStringAttributes : NSDictionary <NSCopying>
{
  NSMutableDictionary *attributes;
}

//- (id)initWithAttributes:(NSDictionary *)atts;

+ (id)stringAttributes;
+ (id)stringAttributesWithFont:(NSFont *)aFont;
+ (id)stringAttributesWithColor:(NSColor *)aColor;
+ (id)stringAttributesWithFont:(NSFont *)aFont color:(NSColor *)aColor;
+ (id)stringAttributesWithFont:(NSFont *)aFont color:(NSColor *)aColor alignment:(NSTextAlignment)align;

@property (retain) NSFont *font;
@property (retain) NSColor *color;
@property (retain) NSShadow *shadow;
@property NSTextAlignment alignment;
@property int fontSize;

- (void)disableHyphenation;
- (void)setShadowOfColor:(NSColor *)color location:(int)aboveorbelow;
- (void)setBigShadowOfColor:(NSColor *)color location:(int)aboveorbelow;

@end

@interface NSFont (CHFontAttributes)
- (CHStringAttributes *)stringAttributes;
- (CHStringAttributes *)stringAttributesWithColor:(NSColor *)aColor;
@end

@interface NSMutableAttributedString (CHMutableAttributedStringAdditions)
- (void)appendString:(NSString *)string attributes:(NSDictionary *)attributes;
@end